package com.aaa.dang.modules.statistics.service.impl;

import com.aaa.dang.common.util.ResultModel;
import com.aaa.dang.modules.statistics.dao.FlowrateDao;
import com.aaa.dang.modules.statistics.service.IFlowrate;
import com.github.pagehelper.PageHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * @author 刘旭泽
 * @version 1.0
 * @date 2018/12/27
 * @description
 */
@Service
public class FlowrateImpl implements IFlowrate {

    @Autowired
    FlowrateDao dao;

    @Override
    public ResultModel getFlowrate(Map<String, Object> query) {
        ResultModel model = new ResultModel();
        model.setData(dao.getFlowrate(query));
        return model;
    }

    @Override
    public ResultModel getreFlowrate(Map<String, Object> query) {
        ResultModel model = new ResultModel();
        model.setData(dao.getreFlowrate(query));
        return model;
    }
}
